package com.mikhailenko.transportMVC.repository.es;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.mikhailenko.transportMVC.model.es.InputEntityFake;

public interface InputFakeRepository extends JpaRepository<InputEntityFake, Integer>{

	@Query("SELECT input FROM inputs_fake input WHERE input.type = :type ")
    List<InputEntityFake> findByType(@Param("type") boolean type);
	
	@Query("SELECT input FROM inputs_fake input WHERE input.name = :name ")
    InputEntityFake findByName(@Param("name") String name);
}
